<?php
/**
 * Created by lzl
 * Date: 2021 2021/8/27
 * Time: 13:56
 */
namespace App\Services\Admin;
use App\Exceptions\RequestException;
use App\Forms\RbacForms;
use App\Services\BaseServices as Base;


class AuthServices extends Base
{

    public $admin;

    /**
     * @param $isRemember
     * @return bool
     * @throws \Psr\SimpleCache\InvalidArgumentException
     */
    public function login($isRemember)
    {
        //登录
        \Auth::guard('admin')->login($this->admin, $isRemember);

        RbacForms::setAdminMenu();

        return true;
    }



}